﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy
{
    class DeliveryRobot:Robot
    {
        private string hours;

        public string Hours { get => hours; set => hours = value; }
        public DeliveryRobot(string name, string hours) : base(name) {
            this.hours = hours;
        }
        public DeliveryRobot() { 
        }
        public override void Working()
        {
            Console.WriteLine("我是：{0}，我工作了：{1}小时",base.Name,this.Hours);
        }
    }
}
